package lab.bmp.track;

import java.rmi.RemoteException;
import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.ejb.FinderException;
import lab.bmp.artist.ArtistPK;
import lab.bmp.genre.GenrePK;
import lab.bmp.studio.StudioPK;


/**
 *
 * @author Smike
 */
public interface TrackHome extends EJBHome {
    
    public Track create(Integer id, Collection<GenrePK> genres, Collection<ArtistPK> artists, StudioPK studio, String name, Long length, Integer year) throws CreateException, RemoteException;
    public Track findByPrimaryKey(TrackPK key) throws FinderException, RemoteException;
    public Collection findAll() throws FinderException, RemoteException;
    
}
